package com.supcalls.thread;

public class AnonymousThreadExample {
    public static void main(String[] args) {
        Thread thread = new Thread(new Runnable() {
            @Override
            public void run() {
                System.out.println(Thread.currentThread().getName() + " is running.");
            }
        });
        thread.start(); // 启动线程
    }
}

